# -*- coding: utf-8 -*-
import sys

if '..' not in sys.path: sys.path.append('..')
import setting

HOST = setting.broker['host']
REQ_PORT = setting.broker['request_port']
RES_PORT = setting.broker['respond_port']
CHA_PORT = setting.broker['channel_port']

del sys, setting

HEARTBEATTIME = 10
HEARTBEAT = b'HELLO'
# worker心跳时间
WORKERTIME = 15
# worker心跳超时时间

FINDONE = b'FIND'
SENDBLOCK = b'REQUEST'
SENDNOBLOCK = b'SEND'
OK = b'OK'
NO = b'NO'
TIMEOUT = b'TIMEOUT'

DEMANDTIMEOUT = 25
# 请求的超时时间
FINDTIMEOUT = 5
# 查找设备超时
DISPOSETIMEOUT = 20
# 处理的超时时间
# 要小于请求时间

GETLIST = b'GETLIST'
GETTOTAL = b'GETSUM'
